export async function getPhones() {
  const resp = await fetch('http://localhost:3000/api/phones');
  if (!resp.ok) {
    throw new Error('Network response was not ok');
  }
  const data = await resp.json();
  return data;
}
